package com.resume.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @Author: 梁云亮
 * @Date: 2021/7/17 9:34
 * @Describe:简历表：一个用户可以在系统中创建多个简历
 */
@ApiModel(value = "简历：Resume")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "tb_resume")
public class Resume implements Serializable {
    private static final long serialVersionUID = 7990724063347905914L;
    /**
     * 编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "编号")
    private Integer id;

    /**
     * 简历标题
     */
    @TableField(value = "title")
    @ApiModelProperty(value = "简历标题")
    private String title;

    /**
     * 头相
     */
    @TableField(value = "avatar")
    @ApiModelProperty(value = "头相")
    private String avatar;

    /**
     * 一句话介绍自己
     */
    @TableField(value = "motto")
    @ApiModelProperty(value = "一句话介绍自己")
    private String motto;

    /**
     * 联系电话
     */
    @TableField(value = "tel")
    @ApiModelProperty(value = "联系电话")
    private String tel;

    /**
     * 邮箱
     */
    @TableField(value = "email")
    @ApiModelProperty(value = "邮箱")
    private String email;

    /**
     * 备注
     */
    @TableField(value = "info")
    @ApiModelProperty(value = "备注")
    private String info;

    /**
     * 显示优先级
     */
    @TableField(value = "priority")
    @ApiModelProperty(value = "显示优先级")
    private Integer priority;

    /**
     * 状态：启用1，禁用0
     */
    @TableField(value = "status")
    @ApiModelProperty(value = "状态：启用1，禁用0")
    private Integer status;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

    /**
     * 用户编号
     */
    @TableField(value = "user_id")
    @ApiModelProperty(value = "用户编号")
    private Integer userId;
}